﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:WpfRcp.Controls;assembly=WpfRcp.Controls">
    
    <SolidColorBrush Color="DarkGray" x:Key="WindowBorder" />
    
    <!--<CornerRadius TopLeft="0" TopRight="0" BottomLeft="0" BottomRight="0" x:Key="windowNoCornerRadius" />
    <CornerRadius TopLeft="6" TopRight="6" BottomLeft="6" BottomRight="6" x:Key="windowCornerRadius" />
    <CornerRadius TopLeft="6" TopRight="6" BottomLeft="0" BottomRight="0" x:Key="windowTopCornerRadius" />
    <CornerRadius TopLeft="0" TopRight="0" BottomLeft="6" BottomRight="6" x:Key="windowBottomCornerRadius" />-->
    <CornerRadius TopLeft="0" TopRight="0" BottomLeft="0" BottomRight="0" x:Key="windowNoCornerRadius" />
    <CornerRadius TopLeft="0" TopRight="0" BottomLeft="0" BottomRight="0" x:Key="windowCornerRadius" />
    <CornerRadius TopLeft="0" TopRight="0" BottomLeft="0" BottomRight="0" x:Key="windowTopCornerRadius" />
    <CornerRadius TopLeft="0" TopRight="0" BottomLeft="0" BottomRight="0" x:Key="windowBottomCornerRadius" />

    <Style TargetType="{x:Type Controls:ChromeWindow}" x:Key="DefaultBaseChromeWindowStyleKey">
        <Setter Property="BorderCornerRadius" Value="{StaticResource windowCornerRadius}" />
        <Setter Property="AllowsTransparency" Value="False" />
        <Setter Property="Margin" Value="5" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="BorderBrush" Value="White" />
        <Setter Property="Background" Value="{DynamicResource DarkWindowBackground}" />
    </Style>

    <Style TargetType="{x:Type Controls:ChromeWindow}" x:Key="DefaultBaseWizardStyleKey">
        <Setter Property="BorderCornerRadius" Value="{StaticResource windowNoCornerRadius}" />
        <Setter Property="AllowsTransparency" Value="False" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="BorderBrush" Value="White" />
        <Setter Property="Background" Value="{DynamicResource DarkWindowBackground}" />
    </Style>

    <Style TargetType="{x:Type Controls:ChromeWindow}" x:Key="SingleBaseChromeWindowStyleKey"
            BasedOn="{StaticResource DefaultBaseChromeWindowStyleKey}">
        <Setter Property="ChromeWindowStyle" Value="Single" />
        <Setter Property="ShowInTaskbar" Value="False" />
    </Style>
    
</ResourceDictionary>